package com.duohe.demo;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class HelloWorldMvcContoller {
    @RequestMapping("/helloWorld")
    public String hello(Model model)throws Exception{
        model.addAttribute("mav","Hello Spring Boot Mvc!");
        return "example/hello";
    }
}
